/* 
  封装mock函数  
*/

const home = require('./modules/home')
const floor = require('./modules/floor')
const modules = [...home, ...floor]


module.exports = function setupMock(app) {
	modules.forEach((module) => {
		app[module.method](module.url, function (req, res) {
			res.json(module.response)
		})
	})
	
}
